<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
//CURL函数
function CurlAliyun($ContentStr) {
    //初始化
    $CurlInit = curl_init();
    //设置选项，包括URL
    curl_setopt($CurlInit, CURLOPT_URL, $ContentStr);
    curl_setopt($CurlInit, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($CurlInit, CURLOPT_HEADER, 0);
    //执行并获取HTML文档内容
    $OutPutContent = curl_exec($CurlInit);
    //释放curl句柄
    curl_close($CurlInit);
    //打印获得的数据
    return $OutPutContent;
}

